package com.cqie.rbac.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.cqie.rbac.entity.Dict;
import com.cqie.rbac.mapper.DictMapper;
import com.cqie.rbac.service.IDictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 字典表 服务实现类
 * </p>
 *
 * @author 单机吧
 * @since 2021-10-14
 */
@Service
public class DictServiceImpl extends ServiceImpl<DictMapper, Dict> implements IDictService {

    @Override
    public List<Dict> getDictList() {
        LambdaQueryWrapper<Dict> lqw = Wrappers.lambdaQuery();
        List<Dict> dicts = baseMapper.selectList(lqw);
        return dicts;
    }
}
